<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use App\Models\BaseModel;
use Encore\Admin\Traits\ModelTree;

class GoodsClassify extends BaseModel
{
    protected $table = 'goods_classify';

    protected $fillable = [
        'Title',
        'Description',
        'Sort'
        ];


    // 关联商品
    public function goods()
    {
        return $this->belongsToMany('App\Models\Goods','goods_to_classify');
    }
}
